package com.pbl6.back.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "experience")
public class Experience{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String expkind;
    private String devicename;
    private String devicearea;
    private String devicefault;
    private Integer testsign;
    private String exprubric;
    private String expstate;
    private String pubdate;
    
    public Experience(Experience experience) {
        if (Objects.nonNull(experience)) {
            this.id=experience.id;
            this.expkind=experience.expkind;
            this.devicename=experience.devicename;
            this.devicearea=experience.devicearea;
            this.devicefault=experience.devicefault;
            this.testsign=experience.testsign;
            this.exprubric=experience.exprubric;
            this.expstate=experience.expstate;
            this.pubdate=experience.pubdate;
        }
    }
}
